import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/index/Index'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/index'　　//默认显示
  },
  {
    path: '/index',
    name: 'index',
    component: Index
  },
  {
    path: '/product',
    name: 'product',
    component: () => import('../views/product/service')
  },
  {
    path: '/safety',
    name: 'safety',
    component: () => import(/* webpackChunkName: "about" */ '../views/Safety/safety')
  },
  {
    path: '/operation',
    name: 'operation',
    component: () => import(/* webpackChunkName: "about" */ '../views/operation/operation')
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/About/about')
  },
  {
    path: '/solve',
    name: 'solve',
    component: () => import(/* webpackChunkName: "about" */ '../views/solve/solve')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})


export default router
